// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-06-18 17:06:48
// 生成路径: internal/app/app/service/app_news_category.go
// 生成人：gfast
// desc:文章分类
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/app/model"
)

type IAppNewsCategory interface {
	List(ctx context.Context, req *model.AppNewsCategorySearchReq) (res *model.AppNewsCategorySearchRes, err error)
	GetById(ctx context.Context, Id uint) (res *model.AppNewsCategoryInfoRes, err error)
	Add(ctx context.Context, req *model.AppNewsCategoryAddReq) (err error)
	Edit(ctx context.Context, req *model.AppNewsCategoryEditReq) (err error)
	Delete(ctx context.Context, Id []uint) (err error)
}

var localAppNewsCategory IAppNewsCategory

func AppNewsCategory() IAppNewsCategory {
	if localAppNewsCategory == nil {
		panic("implement not found for interface IAppNewsCategory, forgot register?")
	}
	return localAppNewsCategory
}

func RegisterAppNewsCategory(i IAppNewsCategory) {
	localAppNewsCategory = i
}
